import Actions from './actions';
export interface IMainReducer {
  isReady: boolean;
  isLoading?: boolean;
  response: {
    [name: string]: any;
  };
  status: {
    [name: string]: any;
  };
  syntheticResult: any; // 合成结果
  appellationItems: Array<any>;
  cardItems: Array<any>;
  userInfo: any;
  codeMessage: any;
  gameInfo: any;
}

export type ActionType = ReturnType<typeof Actions>;
export type IAllReducerProps = {
  main: IMainReducer;
  [name: string]: any;
};

export type IProps = IAllReducerProps & ActionType;
interface operateOption {
  label: string;
  func: string;
  className: string;
  [name: string]: any;
}
//自定义
export type IInfoProps = {};
export type IInfoState = {
  OPERATES: Array<operateOption>;
  pics: any;
  query: any;
};

export interface StateCommonType {
  stateName: string;
  value: any;
}

export interface ComputeItems {
  type: string;
}
